package group.rober.dataform.handler.impl;

import group.rober.dataform.handler.DataSingleHandler;
import group.rober.dataform.model.DataForm;
import group.rober.saber.lang.DataBox;

import java.util.Map;

/**
 * 默认实现DataBox列表数据的基本处理
 * Created by tisir<yangsong158@qq.com> on 2017-05-29
 */
public class DataBoxSingleHandler implements DataSingleHandler<DataBox> {

    public void beforeCreateDataObject(DataForm dataForm, Map<String, Object> queryParameters) {

    }

    public DataBox createDataObject(DataForm dataForm, Map<String, Object> queryParameters) {
        return null;
    }

    public void afterCreateDataObject(DataForm dataForm, Map<String, Object> queryParameters, DataBox dataObject) {

    }

    public void beforeQuery(DataForm dataForm, Map<String, Object> queryParameters) {

    }

    public DataBox query(DataForm dataForm, Map<String, Object> queryParameters) {
        return null;
    }

    public void afterQuery(DataForm dataForm, Map<String, Object> queryParameters, DataBox dataObject) {

    }

    public DataBox save(DataForm dataForm, DataBox data) {
        return null;
    }

    public void beforeInsert(DataForm dataForm, DataBox data) {

    }

    public void afterInsert(DataForm dataForm, DataBox data) {

    }

    public void beforeUpdate(DataForm dataForm, DataBox data) {

    }

    public void afterUpdate(DataForm dataForm, DataBox data) {

    }

    public void beforeDelete(DataForm dataForm, DataBox data) {

    }

    public Integer delete(DataForm dataForm, DataBox data) {
        return null;
    }

    public void afterDelete(DataForm dataForm, DataBox data) {

    }
}
